package com.ruoyi.system.domain.vo;

import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 购物车对象 bdm_cart
 *
 * @author ruoyi
 * @date 2024-12-12
 */
@Data
public class BdmCartVo implements Serializable {

    /**
     * 购物车表ID
     */
    private Long id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private String type;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private Long productId;

    /**
     * 商品属性
     */
    @Excel(name = "商品属性")
    private String productAttrUnique;

    /**
     * 商品数量
     */
    @Excel(name = "商品数量")
    private Integer cartNum;

    /**
     * 0 = 未购买 1 = 已购买
     */
    @Excel(name = "0 = 未购买 1 = 已购买")
    private Integer isPay;

    /**
     * 是否删除
     */
    @Excel(name = "是否删除")
    private Integer isDel;

    /**
     * 是否为立即购买
     */
    @Excel(name = "是否为立即购买")
    private Integer isNew;

    /**
     * 拼团id
     */
    @Excel(name = "拼团id")
    private String combinationId;

    /**
     * 秒杀产品ID
     */
    @Excel(name = "秒杀产品ID")
    private String seckillId;

    /**
     * 砍价id
     */
    @Excel(name = "砍价id")
    private String bargainId;

    @Excel(name = "库存标记 true表示有对应库存")
    private boolean repertoryFlag = true;

    @Excel(name = "库存标记 true表示商品已下架")
    private boolean productStatusFlag = true;

    /**
     * 会员商品金额
     */
    private BigDecimal retailPrice;

    /**
     * 商品原价
     */
    private BigDecimal originalPrice;

    @Excel(name = "商品名称")
    private String goodName;

    @Excel(name = "商品主图")
    private String goodImg;

    @Excel(name = "商品规格")
    private String goodSpecs;

}
